<template>
  <div class="to-do">
    <div class="do-header">
      <div class="header-title">
        待办事项
      </div>
      <div class="header-content">
        <div class="liCont" style="background: linear-gradient(153deg, #94ABFF 0%, #5B73FF 100%);" @click="goInfo(1)">
          <div class="imgPosi"><img src="@/assets/image/home/mySq.png" alt=""></div>
          <div class="title">我的申请</div>
          <div class="num">9</div>
        </div>

        <div class="liCont" style="background: linear-gradient(153deg, #FDC031 0%, #FA8C16 100%);" @click="goInfo(2)">
          <div class="imgPosi"><img src="@/assets/image/home/shenpi.png" alt=""></div>
          <div class="title">审批类</div>
          <div class="num">9</div>
        </div>

        <div class="liCont" style="background: linear-gradient(153deg, #8ED347 0%, #55A722 100%);" @click="goInfo(3)">
          <div class="imgPosi"><img src="@/assets/image/home/yxrw.png" alt=""></div>
          <div class="title">营销任务</div>
          <div class="num">9</div>
        </div>

        <div class="liCont" style="background: linear-gradient(153deg, #F78787 0%, #EC4F4F 100%);" @click="goInfo(4)">
          <div class="imgPosi"><img src="@/assets/image/home/jiedan.png" alt=""></div>
          <div class="title">接单类</div>
          <div class="num">9</div>
        </div>

      </div>
    </div>
    <div class="do-footer">
      <div class="footer-title">
        <img src="@/assets/image/home/jrdb.png" alt="">
      </div>
      <div class="contInfo">
        <ui-carousel direction="vertical" arrow="never" :autoplay="true" indicator-position="none">
          <ui-carousel-item v-for="(item, index) in 4" :key="item">
            <p class="footer-text">{{ index
            }}待办内容待办内容待内容待内容待内容待内容待内容待内容待内容待办内容待办内容待办内容办内容待内容待内容待内容待内容待内容待内容待内容待办内容待办内容待办内容…办内容待内容待内容待内容待内容待内容待内容待内容待办内容待办内容待办内容…
            </p>
          </ui-carousel-item>
        </ui-carousel>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arrCont: [
        {
          label: '我的申请',
          num: ''
        },
        {
          label: '审批类',
          num: '5'
        },
        {
          label: '营销任务',
          num: '10'
        },
        {
          label: '接单类',
          num: '0'
        },
      ]
    }
  },
  methods: {
    goInfo(val) {
      switch (val) {
        case 1:
          this.$router.push('/agentMatters/myApplicationslist')
          break;
        case 2:
          this.$router.push('/agentMatters/examineList')
          break;
      }
    }
  },
};
</script>

<style lang="scss" scoped>
.to-do {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 4px;

  .do-header {
    padding: 20px;

    .header-title {
      margin-left: -10px;
      margin-bottom: 10px;
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #2E2E2E;
      line-height: 16px;
      font-weight: bold;
    }

    .header-content {
      display: flex;
      flex-wrap: wrap;
      width: 100%;
      justify-content: space-between;
      margin-top: 20px;

      .liCont {
        width: 22%;
        height: 80px;
        cursor: pointer;
        background-color: #ccc;
        border-radius: 8px;
        position: relative;
        border-radius: 4px;

        .imgPosi {
          width: 50px;
          height: 50px;
          position: absolute;
          top: 20px;
          right: 20px;
        }

        .imgPosi img {
          width: 100%;
          height: 100%;
        }

        .title {
          width: 80%;
          height: 20px;
          font-size: 12px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #FFFFFF;
          margin-left: 20px;
          margin-top: 15px;
        }

        .num {
          width: 80%;
          height: 24px;
          font-size: 24px;
          font-family: DINAlternate-Bold, DINAlternate;
          font-weight: bold;
          color: #FFFFFF;
          margin-left: 20px;
        }
      }
    }
  }


  .do-footer {
    box-sizing: border-box;
    display: flex;
    width: 96%;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(148, 171, 255, 0.05) 0%, rgba(122, 142, 255, 0.2) 100%);
    border-radius: 4px;

    .footer-title {
      width: 80px;
      height: 18px;
      margin: 0 10px;
      margin-top: 15px;
    }

    .footer-title img {
      width: 100%;
      height: 100%;
    }

    .contInfo {
      width: 90%;
      margin-top: 5px;
    }

    .ui-carousel--vertical {
      height: 40px;
      line-height: 40px;
    }


    .footer-text {
      width: 100%;
      font-size: 14px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}</style>
